import Layout from '@/layout'

const managerOrderRouter = {
  path: '/manager/order',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'ManagerOrder',
  meta: {
    title: '订单管理',
    roles: ['manager', 'admin']
  },
  children: [
    {
      path: 'customer-order',
      component: () => import('@/views/manager/order/customer-order-list'),
      name: 'ManagerCustomerOrder',
      meta: { title: '客户订单', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/order/'),
      name: '',
      meta: { title: '订单分配(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/order/'),
      name: '',
      meta: { title: '订单删除(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/order/'),
      name: '',
      meta: { title: '反馈管理(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/order/'),
      name: '',
      meta: { title: '退单生成(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/order/'),
      name: '',
      meta: { title: '售后管理(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/order/'),
      name: '',
      meta: { title: '对接渠道(TBD)', noCache: false }
    }
  ]
}

export default managerOrderRouter
